<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="./assist/style/style.css" />
  </head>

  <body>
    <div class="a" id="a0"></div>
    <div class="a" id="a1"></div>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script>
      console.log('一般获取')
      console.log($('#a0').innerWidth()) // 200 + 11*2 = 222
      console.log($('#a0').innerHeight()) // 400 + 11*2 = 422

      console.log('border-box')
      console.log($('#a1').innerWidth()) // 200 - 3*2 = 194
      console.log($('#a1').innerHeight()) // 400 - 3*2 = 394
    </script>
  </body>
</html>
